========================================
GSPy: The GoldSim-Python Bridge
Version: 1.8.9
========================================
2026-01-23 18:00:44 - DEBUG: GSPy called with MethodID: 2
2026-01-23 18:00:44 - INFO: Reporting version to GoldSim: 1.8.9
2026-01-23 18:00:44 - DEBUG: GSPy called with MethodID: 3
2026-01-23 18:00:44 - --- Initializing Python Manager ---
2026-01-23 18:00:44 - DEBUG: Reading config file: C:\Users\JasonLillywhite\GoldSim\GTGData - Documents\Library\Software Features\DLLs and Scripts\PythonDLL\gspy\examples\Error Handling Demo\GSPy_314.json
2026-01-23 18:00:44 - DEBUG: Config file opened successfully.
2026-01-23 18:00:44 - DEBUG: Config file parsed successfully.
2026-01-23 18:00:44 - INFO: Config read successfully.
2026-01-23 18:00:44 - INFO: Python interpreter is not initialized. Initializing now...
2026-01-23 18:00:44 - DEBUG: Using python_path from config: C:\Users\JasonLillywhite\AppData\Local\Programs\Python\Python314
2026-01-23 18:00:44 - DEBUG: Initializing NumPy C-API...
2026-01-23 18:00:45 - DEBUG: NumPy C-API initialized successfully.
2026-01-23 18:00:45 - DEBUG: Adding current directory to Python sys.path...
2026-01-23 18:00:45 - DEBUG: Current directory added to path.
2026-01-23 18:00:45 - DEBUG: Script path from config: error_demo.py
2026-01-23 18:00:45 - DEBUG: Function name from config: process_data
2026-01-23 18:00:45 - DEBUG: Attempting to import Python module: error_demo
2026-01-23 18:00:45 - DEBUG: Module imported successfully.
2026-01-23 18:00:45 - DEBUG: Attempting to get function 'process_data' from module...
2026-01-23 18:00:45 - DEBUG: Function found successfully.
2026-01-23 18:00:45 - --- Python Manager initialization successful ---
2026-01-23 18:00:45 - DEBUG: GetNumberOfInputs calculated a total of: 1
2026-01-23 18:00:45 - DEBUG: GetNumberOfOutputs calculated a total of: 1
2026-01-23 18:00:45 - DEBUG: GSPy called with MethodID: 0
2026-01-23 18:00:45 - --- Initializing Python Manager ---
2026-01-23 18:00:45 - INFO: Python interpreter is already initialized.
2026-01-23 18:00:45 - --- Python Manager initialization successful ---
2026-01-23 18:00:45 - DEBUG: GSPy called with MethodID: 1
2026-01-23 18:00:45 - INFO: --- Executing Calculation Cycle ---
2026-01-23 18:00:45 - DEBUG: Preparing 1 input argument(s) for Python.
2026-01-23 18:00:45 - DEBUG:   Input #0: Type='scalar'
2026-01-23 18:00:45 - DEBUG: Calling Python function...
2026-01-23 18:00:45 - ERROR: Validation error: Traceback (most recent call last):
  File "C:\Users\JasonLillywhite\GoldSim\GTGData - Documents\Library\Software Features\DLLs and Scripts\PythonDLL\gspy\examples\Error Handling Demo\error_demo.py", line 37, in process_data
    raise ValueError(f"Input value must be non-negative, got {input_value}")
ValueError: Input value must be non-negative, got -0.45

2026-01-23 18:00:45 - ERROR: Invalid input: Input value must be non-negative, got -0.45
2026-01-23 18:00:45 - DEBUG: gspy.error() called, message stored: Invalid input: Input value must be non-negative, got -0.45
2026-01-23 18:00:45 - DEBUG: Python signaled fatal error via gspy.error(): Invalid input: Input value must be non-negative, got -0.45
2026-01-23 18:00:45 - DEBUG: Sending error to GoldSim: GSPy Error: Invalid input: Input value must be non-negative, got -0.45
2026-01-23 18:00:45 - ERROR: Fatal error to report to GoldSim: GSPy Error: Invalid input: Input value must be non-negative, got -0.45
2026-01-23 18:00:45 - DEBUG: Status set to: 1
2026-01-23 18:00:45 - DEBUG: Error sent to GoldSim successfully
